import React, { Component } from 'react';
// import { List, Switch, Button, WingBlank } from 'antd-mobile';
import { createForm } from 'rc-form';
import SelectAddWrapper from './SelectAdd'

class Address extends Component {
	goback () {
		this.props.history.push('/setting');
	}
	render() {
		// const Item = List.Item;
		// const { getFieldProps } = this.props.form;
		return (
			<div className="container">
				<div className="box set-box">
					<div className="header set-header">
						<i className="iconfont icon-left-copy" onClick={this.goback.bind(this)}> 配送地址</i>
					</div>
					<div className="set-content content">
						<SelectAddWrapper />
					</div>
				</div>
				<div className="footer address-footer">
					<div className="add-address">
						<p>增加新地址</p>
					</div>
				</div>
			</div>
		)
	}
}
		
const AddressWrapper = createForm()(Address);		
export default AddressWrapper;